package com.hht.service;

import com.hht.mapper.UserMapper;
import com.hht.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @author hht
 * @ClassName UserService
 * @Description TODO
 * @Date 2019/4/18 17:53
 * @VERSION 1.0
 */
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public void saveUser(User user) {
        userMapper.insert(user);
    }
}
